package com.lsm.sm.entity;

/**
 * NetMember entity. @author MyEclipse Persistence Tools
 */

public class NetMember extends Model{
	private static final long serialVersionUID = 4504899418845239211L;
	private Integer user;
	private Integer net;
	private Integer permission;
	private Integer category;
	private Integer turn;

	// Constructors

	/** default constructor */
	public NetMember() {
	}

	public Integer getUser() {
		return this.user;
	}

	public void setUser(Integer user) {
		this.user = user;
	}

	public Integer getNet() {
		return this.net;
	}

	public void setNet(Integer net) {
		this.net = net;
	}

	public Integer getPermission() {
		return this.permission;
	}

	public void setPermission(Integer permission) {
		this.permission = permission;
	}

	public Integer getCategory() {
		return this.category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	public Integer getTurn() {
		return this.turn;
	}

	public void setTurn(Integer turn) {
		this.turn = turn;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		NetMember other = (NetMember) obj;
		return id== other.id;
	}
}